/**
 * Created by zhoua on 2017/8/15.
 */

export default function (date) {
  if (!date) {
    new Error('date is require');
  }
  date = +date
  if (!isNaN(date)) {
    new Error('date is a Number');
  }
  let year = new Date().getFullYear()
  let arr = [];
  for (let i = date; i <= year; i++) {
    arr.push(i)
  }
  return arr;
}
